package cn.xuewenbao.edu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 讲书表
 * </p>
 *
 * @author mafayu
 * @since 2021-03-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Book对象", description="讲书表")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "讲书id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "作者id")
    private String userId;


    @ApiModelProperty(value = "讲书标题")
    private String title;

    @ApiModelProperty(value = "讲书内容")
    private String content;

    @ApiModelProperty(value = "讲书描述")
    private String description;

    @ApiModelProperty(value = "讲书封面路径")
    private String cover;

    @ApiModelProperty(value = "讲书音频路径")
    private String audio;

    @ApiModelProperty(value = "讲书视频路径")
    private String video;

    @ApiModelProperty(value = "纸书价格")
    private BigDecimal price;

    @ApiModelProperty(value = "播放量")
    private Long viewCount;

    @ApiModelProperty(value = "点赞数")
    private Long likeCount;

    @ApiModelProperty(value = "讲书状态 Draft未发布  Normal已发布")
    private String status;

    @ApiModelProperty(value = "逻辑删除1（true）已删除，0（false）未删除")
    private Integer isDeleted;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;


}
